package org.genntii.warehousesystem.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User {
    @TableId
    private int id;
    private String username;
    private String password;
    private String salt;
    private String name;
    @TableField("identification_number")
    private String identificationNumber;
    private String tel;
    @TableField("commonly_used_address_id")
    private int commonlyUsedAddressId;
    @TableField("bank_name")
    private String bankName;
    @TableField("bank_account")
    private String bankAccount;
    private int status;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("last_update_time")
    private LocalDateTime lastUpdateTime;
}
